network object

int connected_peers
Specifies how many peers are connected to the current session, or -1 on error. This property cannot be modified from the script.

double bytes_sent
Specifies the number of bytes that have been sent in total throughout the current session to all peers, including packet headers and other data not actually part of user packets, or -1 on error. This property cannot be modified from the script.

double bytes_received
Specifies the number of bytes received throughout the current session from all peers, including packet headers and other data not actually part of user packets, or -1 on error. This property cannot be modified from the script.

bool active
Returns true while the host is active (e.g. between calls to one of the setup methods and the destroy method), or false otherwise. This property cannot be modified from the script.